package com.erb.mapper;

import com.erb.entity.Advertisement;
import org.apache.ibatis.annotations.Param;


/**
 * 广告
 */
public interface AdvertisementMapper {
	int updateAdvertisement(Advertisement advertisemen);

	int updateAdvertisementStatus(@Param("id") int id, @Param("isShow") boolean isShow);

	int addAdvertisement(Advertisement advertisement);

	int deleteAdvertisement(int id);

	Advertisement findAdvertisementById(int id);

	void updateStatusTask();
}
